<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class admin extends MX_Controller
{
    public function admin()
    {
        parent::__construct();
    }
    public function index()
    {
        if ($_SESSION['isMobile'] == 1)
        {
            $content = $this->load->view('mobile/index', '', true);
            $this->load->view('templates/admin', array('content' => $content));
        } else
        {
            redirect(site_url('users'));
        }
    }
}
